package com.ly.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class FastDFSFile {
    //文件名字
    private String name;
    //文件内容
    private byte[] bytes;
    //文件扩展名(后缀)
    private String ext;
    //文件MD5摘要值
    private String md5;
    //文件创建作者
    private String author;

    public FastDFSFile(String name, byte[] content, String ext, String height, String width, String author) {
        super();
        this.name = name;
        this.bytes = content;
        this.ext = ext;
        this.author = author;
    }

    public FastDFSFile(String name, byte[] bytes, String ext) {
        super();
        this.name = name;
        this.bytes = bytes;
        this.ext = ext;
    }
}
